package com.xinqi.modules.prepare.question.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xinqi.common.mybatis.data.entity.BaseEntity;
import com.xinqi.modules.prepare.common.domain.PrepareBaseParam;
import com.xinqi.modules.prepare.prepare.enums.PrepareQuestionTypeEnum;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * 备课区测评卷试题表实体层
 *
 * @author: system
 * @date: 2023/03/19
 */
@Setter
@Getter
@TableName("pl_prepare_question_bank")
public class PrepareQuestionBankEntity extends BaseEntity implements PrepareBaseParam {
    /**
     * 备课区id
     */
    @TableField(value = "prepare_id")
    private Long prepareId;
    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;
    /**
     * 题型，1:判断题；2:单选题；3:多选题；4:不定项题；5: 填空题；6:简答题；
     */
    @TableField(value = "question_type")
    private PrepareQuestionTypeEnum questionType;
    /**
     * 标题
     */
    @TableField(value = "question")
    private String question;
    /**
     * 内容
     */
    @TableField(value = "content")
    private String content;
    /**
     * 题目文件列表
     */
    @TableField(value = "content_files")
    private String questionFiles;
    /**
     * 选项设置
     */
    @TableField(value = "options")
    private String optionList;
    /**
     * 难易程度，1:易；2:中；3:难
     */
    @TableField(value = "difficulty")
    private String difficulty;
    /**
     * 分值
     */
    @TableField(value = "score")
    private BigDecimal score;
    /**
     * 题目排序
     */
    @TableField(value = "sort")
    private Long sort;
    /**
     * 答案
     */
    @TableField(value = "answer")
    private String answer;
    /**
     * 答案文件
     */
    @TableField(value = "answer_file")
    private String answerFile;
    /**
     * 答案文件列表
     */
    @TableField(value = "answer_files")
    private String answerFiles;
    /**
     * 答案解析
     */
    @TableField(value = "analysis")
    private String analysis;
    /**
     * 答案解析文件
     */
    @TableField(value = "analysis_file")
    private String analysisFile;
    /**
     * 答案解析文件列表
     */
    @TableField(value = "analysis_files")
    private String analysisFiles;

    @Override
    public String getName() {
        return question;
    }
}
